package Menu;
import java.awt.Button;
import java.awt.FlowLayout;
import java.awt.Frame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.*;

import Menu.menu;

public class Salidas extends JDialog{
	private Button botonregresa = new Button ("Regresar Menu");
	private Frame menuvar;
	
	public Salidas (Frame menupar){
		menuvar = menupar ;
		setLayout(new FlowLayout());
		setTitle("Menu Salidas");
		setSize(500, 400);
		botonregresa.setSize(150, 150);
		
	botonregresa.addActionListener(new ActionListener() {
		
		@Override
		public void actionPerformed(ActionEvent e) {
			// TODO Auto-generated method stub
			if(e.getSource()==botonregresa){
				setVisible(false);
				menuvar.setVisible(true);
			}
		}
	});	
add(botonregresa);
setVisible(true);
	}
}
